package top.juntech.msweathercollection.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import top.juntech.msweathercollection.vo.City;

import java.util.List;

@FeignClient(name = "ms-weather-zuul",fallback = CityDataClientHystrix.class)
public interface CityDataClient {
//    使用feign代理
    @GetMapping("/city/cities")
    List<City> listCity() throws Exception;
}
